import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '@/views/home/index.vue';
import Symptoms from '@/views/symptoms/index.vue';


Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    name: 'home',
    component: Home,
  },
  {
    path: '/symptoms',
    name: 'symptoms',
    component: Symptoms,
  },
];

const router = new VueRouter({
  mode: 'hash', //可写可不写
  base: process.env.NODE_ENV === 'production' ? '/remote-dict-dev/' : '/',
  routes,
});

export default router;
